﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using nERP.Model.Wms;
using nERP.Model;
using nERP.Model.Bas;

namespace nERP.ViewModel.Wms.OtherInWarehouseDetailVMs
{
    public partial class OtherInWarehouseDetailTemplateVM : BaseTemplateVM
    {

        [Display(Name = "_Model._OtherInWarehouseDetail._OtherInWarehouse")]
        public ExcelPropety OtherInWarehouse_Excel = ExcelPropety.CreateProperty<OtherInWarehouseDetail>(x => x.OtherInWarehouseId);
        [Display(Name = "_Model._OtherInWarehouseDetail._OtherInWarehouseDetailCode")]
        public ExcelPropety OtherInWarehouseDetailCode_Excel = ExcelPropety.CreateProperty<OtherInWarehouseDetail>(x => x.OtherInWarehouseDetailCode);
        [Display(Name = "_Model._OtherInWarehouseDetail._Warehouse")]
        public ExcelPropety Warehouse_Excel = ExcelPropety.CreateProperty<OtherInWarehouseDetail>(x => x.WarehouseId);
        [Display(Name = "_Model._OtherInWarehouseDetail._Goods")]
        public ExcelPropety Goods_Excel = ExcelPropety.CreateProperty<OtherInWarehouseDetail>(x => x.GoodsId);
        [Display(Name = "_Model._OtherInWarehouseDetail._GoodsName")]
        public ExcelPropety GoodsName_Excel = ExcelPropety.CreateProperty<OtherInWarehouseDetail>(x => x.GoodsName);
        [Display(Name = "_Model._OtherInWarehouseDetail._GoodsSpec")]
        public ExcelPropety GoodsSpec_Excel = ExcelPropety.CreateProperty<OtherInWarehouseDetail>(x => x.GoodsSpec);
        [Display(Name = "_Model._OtherInWarehouseDetail._GoodsUnit")]
        public ExcelPropety GoodsUnit_Excel = ExcelPropety.CreateProperty<OtherInWarehouseDetail>(x => x.GoodsUnit);
        [Display(Name = "_Model._OtherInWarehouseDetail._OtherInNumber")]
        public ExcelPropety OtherInNumber_Excel = ExcelPropety.CreateProperty<OtherInWarehouseDetail>(x => x.OtherInNumber);
        [Display(Name = "_Model._OtherInWarehouseDetail._Remark")]
        public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<OtherInWarehouseDetail>(x => x.Remark);
        [Display(Name = "_Model._OtherInWarehouseDetail._Seq")]
        public ExcelPropety Seq_Excel = ExcelPropety.CreateProperty<OtherInWarehouseDetail>(x => x.Seq);
        [Display(Name = "_Model._OtherInWarehouseDetail._Status")]
        public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<OtherInWarehouseDetail>(x => x.Status);
        //[Display(Name = "_Model._OtherInWarehouseDetail._CreateTime")]
        //public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<OtherInWarehouseDetail>(x => x.CreateTime, true);
        //[Display(Name = "_Model._OtherInWarehouseDetail._UpdateTime")]
        //public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<OtherInWarehouseDetail>(x => x.UpdateTime, true);
        //[Display(Name = "_Model._OtherInWarehouseDetail._CreateBy")]
        //public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<OtherInWarehouseDetail>(x => x.CreateBy);
        //[Display(Name = "_Model._OtherInWarehouseDetail._UpdateBy")]
        //public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<OtherInWarehouseDetail>(x => x.UpdateBy);
        //[Display(Name = "_Model._OtherInWarehouseDetail._TenantCode")]
        //public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<OtherInWarehouseDetail>(x => x.TenantCode);

        protected override void InitVM()
        {


        }

    }

    public class OtherInWarehouseDetailImportVM : BaseImportVM<OtherInWarehouseDetailTemplateVM, OtherInWarehouseDetail>
    {
        //import

    }

}